<template>
  <div>
    <van-tabs>
      <van-tab v-for="index in 8" :title="'标签 ' + index">
        内容 {{ index }}
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  name: "Text",
  data() {
    return {
        itemList:[],//下边展示商品列表
    };
  },
  methods: {
    // 获取query参数
    async getGoodsList() {
    //   let { navId, subId } = this.$route.query;

      let timet = new Date().getTime();

      console.log(timet, navId, subId);
      const result = await this.$ajax.category.reqCommodity(
        timet,
        1005000,
        1130056
      );
      this.itemList = result.data.categoryItems.itemList
    },
    // 去详情页
    toDtail(){
        
    }
  },
  mounted() {
    this.getGoodsList();
  },
};
</script>

<style scoped>
</style>